package com.egoo.ticket.server.service;


import com.egoo.ticket.server.pojo.dto.WorkOrderTriggerInfoDto;
import com.egoo.ticket.server.pojo.entity.WorkOrderTriggerInfo;
import com.egoo.ticket.server.utils.common.DbResponse;

import java.util.Map;

/**
 * @author：victor_tang
 * @Date ：2020/1/3
 * @Description：工单触发器基础信息接口
 */
public interface WorkOrderTriggerInfoService {

	/**
	 * TODO
	 * @param workOrderTriggerInfoDto
	 * @return
	 */
	DbResponse getListBycondition(WorkOrderTriggerInfoDto workOrderTriggerInfoDto);

	/**
	 * TODO
	 * @param workOrderTriggerInfo
	 * @return
	 */
	DbResponse addSave(WorkOrderTriggerInfo workOrderTriggerInfo);

	/**
	 * TODO
	 * @param triggerId
	 * @return
	 */
	DbResponse getDetailById(String triggerId);

	/**
	 * TODO
	 * @param triggerTypeCode
	 * @param tenantId
	 * @return
	 */
	DbResponse getTriggerActionTypeFirstList(String triggerTypeCode, String tenantId);

	/**
	 * TODO
	 * @param triggerTypeCode
	 * @param tenantId
	 * @return
	 */
	DbResponse getTriggerActionTypeSecondList(String triggerTypeCode, String tenantId);

	/**
	 * TODO
	 * @param workOrderTypeId
	 * @return
	 */
	DbResponse getWorkTypeAllFiledInfoByWorkTypeId(String workOrderTypeId);

	/**
	 * TODO
	 * @param workOrderTriggerInfo
	 * @return
	 */
	DbResponse updateById(WorkOrderTriggerInfo workOrderTriggerInfo);

	/**
	 * TODO
	 * @param triggerId
	 * @return
	 */
	DbResponse deleteById(String triggerId);

	/**
	 * TODO
	 * @param map
	 * @return
	 */
	DbResponse deleteByConditon(Map<String, Object> map);

	/**
	 * TODO
	 * @param upadteMap
	 * @return
	 */
	DbResponse batchUpdate(Map<String, Object> upadteMap);
}
